<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>链接导航栏</title>
    <style>
        div {
            text-align: center;
            margin-top: 60px;
        }
        /* 练习flex */
        /* div {
            display: flex;
            justify-content: center;
            align-items: center;
        } */
        
        a {
            margin: 0 5px;
            width: 120px;
            display: inline-block;
            line-height: 50px;
            text-align: center;
            height: 50px;
            color: white;
            background: url(images/bg.png);
            text-decoration: none;
        }
        
        a:hover {
            background: url(images/bgc.png);
        }
    </style>
</head>

<body>
    <div>
        <a href="#">新闻</a>
        <a href="#">体育</a>
        <a href="#">骑车</a>
        <a href="#">好用</a>
    </div>
</body>

</html>